package com.yao.sys.entity;


import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
* 账户表
*
* @author autoCode
* @version 1.0.0-SNAPSHOT
* @date 2020-03-23
*/
@Data
@Accessors(chain = true)
public class AccountEntity implements Serializable {

private static final long serialVersionUID = 1L;

    /**
    * 自增主键
    */
    @TableId(value = "`id`", type = IdType.AUTO)
    private Integer id;
    /**
    * 有效状态0-有效
    */
    @TableField(value = "`status`", fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NOT_EMPTY)
    private Byte status;
    /**
    * 账号
    */
    @TableField(value = "`accountName`", updateStrategy = FieldStrategy.NOT_EMPTY)
    private String accountName;
    /**
    * 密码
    */
    @TableField(value = "`password`", updateStrategy = FieldStrategy.NOT_EMPTY)
    private String password;
    /**
    * 姓名
    */
    @TableField(value = "`name`", updateStrategy = FieldStrategy.NOT_EMPTY)
    private String name;
    /**
    * 手机号
    */
    @TableField(value = "`phone`", updateStrategy = FieldStrategy.NOT_EMPTY)
    private String phone;
    /**
    * 操作员(用户id)
    */
    @TableField(value = "`operator`", updateStrategy = FieldStrategy.NOT_EMPTY)
    private Integer operator;
    /**
    * 创建时间
    */
    @TableField(value = "`createTime`", fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    /**
    * 更新时间
    */
    @TableField(value = "`updateTime`", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

}